package com.bieber.dubbo.consumer;

import com.bieber.dubbo.FirstDubboMService;
import com.bieber.dubbo.bean.HelloWorldRequest;

/**
 * Created by bieber on 16/3/25.
 */
public class ConsumeService {

    private FirstDubboMService firstDubboMService;

    public void init(){
        HelloWorldRequest request = new HelloWorldRequest();
        request.setName("bieber");
        System.out.println(firstDubboMService.sayHello(request));
    }

    public void setFirstDubboMService(FirstDubboMService firstDubboMService) {
        this.firstDubboMService = firstDubboMService;
    }
}
